#ifndef __COUNTER_H__
#define __COUNTER_H__
#include "cocos2d.h"

class Counter : public cocos2d::CCNode
{
public:
	Counter();
	virtual ~Counter();
	static Counter* create(cocos2d::CCArray* presenters,int digit=0);
	bool init(cocos2d::CCArray* presenters,int digit=0);
	int getDigit() {return _digit;}
	void setDigit(int digit);
private:
	void visit();
	void animation(int digit);
private:
	int _digit;
	cocos2d::CCNode* _presenters;
};

#endif